﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>styling</title>
    <style type="text/css">
        .styleClass {
            color: red;
            padding: 1em;
            margin-right: 0;
            margin-left: 10px;
        }
    </style>
</head>
<body>
    <div>Ip man vs Iron man</div>
</body>
</html>
<script src="Scripts/jquery-2.1.4.js"></script>
<script language="javascript">
    $(function () {
        //$("div").css({ "color": "blue", "padding": "1em", "margin-right": "0", "margin-Left": "10px" });
        $("div").addClass('styleClass');
    });
</script>